Peer to peer enterprise storage system with lexical recovery sub-system

ABSTRACT

A peer-to-peer storage system includes a storage coordinator that centrally manages distributed storage resources in accordance with system policies administered through a central administrative console and a lexical recovery sub-system that automatically creates versions of files that are thereafter maintained by the system. The storage resources, or “nodes,” are otherwise unused portions of storage media, e.g., hard disks, that are included in the devices such as personal computers, workstations, laptops, file servers, and so forth, that are connected to a corporate computer network, and are thus otherwise available only individually to the respective devices. The storage coordinator assigns the nodes to various “replication groups” and allocates the storage resources on each of the nodes in a given group to maintaining dynamically replicated current and previous versions of the group files. The storage nodes in a given group perform dynamic file replication and synchronization operations by communicating directly, that is, peer-to-peer, using a message-based protocol. The storage coordinator also manages distributed searches of file content on the network by selecting one node from each group to search through the associated group files. The selected nodes report the search results back to the storage coordinator, which organizes the results and provides them to the user. The user may then restore or recover a previous version of a file or review a current version of the file by selecting the desired file version from the search results.

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] The present application is a continuation-in-part application of U.S. patent application Ser. No. 10/075,710, filed on Feb. 14, 2001, by Sutherland, et al. for a PEER-TO-PEER ENTERPRISE STORAGE and is hereby incorporated by reference.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] The invention relates to data storage systems and, in particular, to distributed data storage systems.

[0004] 2. Background Information

[0005] Computer networks for use in a business environment typically include a centralized file storage system. The network consists of various personal computers, laptops and so forth, that communicate over the network with the file storage system. The file storage system includes one or more servers that control the storage of information on and the retrieval of information from dedicated file storage resources, such as hard disk drives, magnetic or optical disks. As the demand for storage increases with growing demands for the retention of e-mail messages and attachments, Web-content, and multi-media applications, and electronic document storage, the storage capacity of the centralized storage systems is becoming larger and larger, and the systems are becoming more and more complex and costly to operate.

[0006] In order to control the storage and retrieval operations directed to the large capacity file storage resources, the file storage systems must be relatively sophisticated. Further, the operations of the storage systems must generally be overseen by specialized Information Technology (“IT”) personnel, who are responsible for maintaining the integrity of the stored information and also for supporting the end users. The IT personnel spend much of their time regularly backing up the stored files and responding to end users' requests to recover lost files.

[0007] There are currently several types of centralized file storage systems that are used in business environments. One such system is a server-tethered storage system that communicates with the end users over a local area network, or LAN. The end users send requests for the storing and retrieving of files over the LAN to a file server, which responds by controlling the storage and/or retrieval operations to provide or store the requested files. While such a system works well for smaller networks, there is a potential bottleneck at the interface between the LAN and the file storage system. Further, the system essentially bundles applications, operating system platform and server hardware with the storage platform, which results in a storage system that lacks scalability and flexibility.

[0008] Another type of centralized storage system is a storage area network, which is a shared, dedicated high-speed network for connecting storage resources to the servers. While the storage area networks are generally more flexible and scalable in terms of providing end user connectivity to different server-storage environments, the systems are also more complex. The systems require hardware, such as gateways, routers, switches, and are thus costly in terms of hardware and associated software acquisition. Thereafter, the systems are costly to manage and maintain. Further, a bottleneck may occur at the interface between the networked end users and the storage area network.

[0009] Yet another type of storage system is a network attached storage system in which one or more special-purpose servers handle file storage over the LAN. The special-purpose servers may be optimized to operate as stand-alone devices, and may thus be distributed over the network to eliminate bottlenecks. However, distributing the servers eliminates centralized management of file backup and recovery operations, and the storage system can thus be expensive to maintain.

[0010] There are file storage systems currently under study that utilize distributed storage resources resident on various nodes, or computers, operating on the system, rather than a dedicated centralized storage system. The administration and management of the systems under study are also distributed, with the clients communicating peer-to-peer to determine which storage resources to allocate to particular files, directories and so forth. One such system is Ocean Store and the other is Farsite.

[0011] The Ocean Store and Farsite systems are organized as global file stores that are physically distributed over the computers on the system. A global file store is a monolithic file system that is indexed over the system as, for example, a hierarchical directory. This type of system has a potential bottleneck at the directory level.

[0012] The nodes in the systems use Byzantine agreements to manage file replications, which are used to promote file availability and/or reliability. The Byzantine agreements require rather lengthy exchanges of messages and thus are inefficient and even impractical for use in a system in which many modifications to files are anticipated. Thus the Ocean Store and Farsite systems may not work in a business environment.

[0013] What is needed is a file storage system that takes advantage of distributed storage resources available on the corporate computer network and operates in a manner that is compatible with the business environment, in terms of central administration and management, and system efficiency.

[0014] Further, what is needed is a mechanism that readily locates and/or recovers or restores files and/or data that are maintained by the file storage system.

SUMMARY OF THE INVENTION

[0015] A peer-to-peer storage system includes a storage coordinator that centrally manages distributed storage resources in accordance with system policies administered through a central administrative console. The storage resources are otherwise unused portions of storage media, e.g., hard disks, that are included in the devices such as personal computers, workstations, laptops, file servers, and so forth, that are connected to a corporate computer network. The devices are hereinafter referred to collectively as “storage nodes.” The system thus centrally administers and manages the system-wide reuse of storage resources that are otherwise available only individually to the respective devices.

[0016] As discussed in more detail below, the storage coordinator manages the distributed storage resources by assigning the nodes to various groups and allocating the storage resources on each of the nodes in a given group to maintaining dynamically replicated versions of associated files. A given file is thus continuously recoverable from any one of the nodes in the associated group even if a given storage node fails or, in the case of a laptop computer, a node is temporarily or permanently removed from the system. If a storage node is reconnected to the network after being off-line, the storage coordinator manages file synchronization and active replication operations, to update both the added node and the other nodes in the associated storage group. The group files can thereafter be readily recovered from any node in the storage group.

[0017] The storage coordinator may also be dynamically replicated on other storage coordinators in a cluster, to prevent disruption of the system if one of the coordinators should fail.

[0018] The dynamic replication and synchronization operations eliminate the need for daily system back-up operations. Further, the operations ensure that a user can recover a lost file from one of the storage nodes in the associated group. Accordingly, there is no need for file recovery operations to be overseen by IT personal.

[0019] As is also discussed in more detail below, the files stored in the system are assigned to public and private storage domains, or “storage lockers,” based in part on whether the files are shared access files or single-user access files. The storage coordinator manages the respective storage lockers as one or more “replication groups,” which are essentially a mechanism for allocating storage resources to user files. The storage coordinator creates a replication group when a user requests storage resources, and allocates to the replication group a predetermined amount of the storage resources on each of a selected number, or group, of nodes. The nodes in the selected group then participate in the dynamic replication of the files that are stored on the allocated resources in any of the selected nodes.

[0020] The storage nodes perform file replication and synchronization operations by communicating directly, that is, peer-to-peer. The nodes use an XML message-based protocol that allows the nodes to perform the dynamic replication and synchronization operations as background tasks that are transparent to the user. The protocol also allows the nodes to handle lost or corrupted messages, the interruption of the replication and synchronization operations, and so forth, as discussed in more detail below.

[0021] The storage coordinator balances the storage loads among various groups and minimizes the amount of network bandwidth devoted to file replication and synchronization operations by selectively assigning the nodes to the various groups. The storage coordinator may also migrate files and/or storage nodes from one group to another, in order maximize the extent to which particular files are locally available to the users who require them.

[0022] The storage coordinator also manages distributed searches of file content on the network. In response to a query from a user, the storage coordinator selects one node from each storage group to search through the associated replication group files. The selected nodes perform their searches and report the search results back to the storage coordinator, which organizes the results and provides them to the user. Thereafter, in response to a request for various files by the user, the storage coordinator instructs the storage nodes that are near neighbors of the user to provide the requested files. By careful selection of the nodes involved in a given distributed search operation, the storage coordinator minimizes the amount of network bandwidth consumed by the search operation.

[0023] Multiple storage coordinators may be used in systems that include multiple remote office locations connected to the network over a WAN and/or various relatively large departments that operate essentially as separate LANs, to provide more efficient management of the associated distributed storage resources. The multiple storage coordinators communicate separately with the administrative console and operate in accordance with the centrally administered, system-wide policies and/or with site-specific or department-specific policies established by the system administrator using the administration console. The multiple storage coordinator system is thus centrally administered and, in each office or department, centrally managed.

[0024] A lexical recovery sub-system operates at each storage node to monitor changes to the files and create version histories of the files. The storage modes maintain the version histories in respective file folders and replicate the various versions among the nodes in the replication group. Before replication, the node on which a user is working with a particular file indexes each version. The index is then replicated among the nodes along with the file versions. Thereafter, the user can search for a file and its previous versions by file name or based on lexical expressions, to recover or restore the file or particular data.

[0025] The search engine used by the system operates over the stored and replicated files in essentially the same way as an internet-based search engine operates. Thus, the search engine searches for content over all file types. The search engine returns information relating to the current versions of the respective files and, as appropriate, also returns information relating to the earlier versions of the files. The user can then select a desired version of the file from the results. The user can thus recover lost or corrupted data and/or files or restore files and/or data that have been intentionally or unintentionally deleted, without the involvement of IT personnel. Further, the user can restore a previous version of the file as the current version, again without the intervention of IT personnel.

BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The invention description below refers to the accompanying drawings, of which:

[0027]FIG. 1 is a functional block diagram of a distributed file storage system constructed in accordance with the invention;

[0028]FIG. 2 is a more detailed block diagram of the system of FIG. 1;

[0029]FIG. 3 is a functional block diagram that represents an operational model of the system of FIG. 1;

[0030]FIG. 4 is a functional block diagram of an extended system of FIG. 1;

[0031]FIG. 5 is a functional block diagram that illustrates a storage node of FIG. 1 in more detail;

[0032]FIG. 6 is a functional block diagram that illustrates a storage coordinator and storage nodes of FIG. 1 in more detail;

[0033]FIG. 7 is a functional block diagram that represents an operational model of the system of FIG. 1;

[0034]FIG. 8 is a flow chart of the operations of a node in a node registration operation;

[0035]FIG. 9 is a flow chart of the operations of the storage coordinator in a node registration operation; and

[0036]FIG. 10 is a functional block diagram of the system of FIG. 1 with an added lexical recovery sub-system.

DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT I. The System

[0037] Referring now to FIGS. 1 and 2, a peer storage network (“PSN”) 10 includes a storage coordinator 12 that manages file storage and retrieval operations on distributed storage resources that consist of otherwise free portions 142 of storage media 140, i.e., hard disks, that are contained in networked storage nodes 14. The networked devices may be off-the-shelf laptops 14 a, personal computers 14 b, workstations 14 c, and so forth, which are designed for stand-alone operation and thus include relatively large i.e., 10 or 20 gigabyte, hard drives. When a given device is connected to a network, however, most applications and files are shared, and thus, a relatively large portion of the hard drive remains free. The PSN re-uses the free portions of the hard disks for the storage of network files. One or more dedicated storage devices, such as a file server 14 d, that operate under the control of the storage coordinator may also be included in the PSN.

[0038] The storage coordinator 12 assigns the nodes 14 to various storage groups, and directs the storage nodes in a given group to communicate directly, that is, peer-to-peer, to perform dynamic file replication operations that ensure that a given file is replicated at a predetermined minimum number of nodes. The PSN 10 may also include a cluster 13 of storage coordinators that communicate peer-to-peer in order to dynamically replicate file management information among the members of the cluster. Preferably, the cluster includes at least three storage coordinators, to ensure continued network operation in the event one or more of the storage coordinators fail. The replication operations eliminate the need for the daily system back-up that is performed in conventional networks. The replication operations are discussed in more detail below.

[0039] The storage coordinator 12 manages the storage resources in accordance with network policies that are set by a system administrator and administered through an administrative console 16. As discussed in more detail below, the policies dictate how the storage resources are to be utilized at the storage nodes, the number of replications, or copies, of a file that must be maintained by the system, whether the copies are to be stored locally or remotely, and so forth. The administrative console communicates the policies to the storage coordinator, which, in turn, communicates various policies to the storage nodes. The PSN 10 is thus administered and managed centrally, while file storage operations are performed in a distributed manner.

[0040] The storage media 140 in a given storage node 14 includes a PSN storage area 142 and a non-PSN storage area 144. The non-PSN storage area is designated for the storage of personal or device-specific files and applications. The PSN storage area is designated for network files, such as shared files and/or applications and email accounts. The term “files” used herein encompasses files, HTTP resources, e-mail messages and all other types of documents and objects. A user allocates a percentage of the storage media 140 to the PSN 10 based at least in part on the policies administered through the administrative console 16, as discussed in more detail below. To a user, the PSN storage area and the non-PSN storage area appear as separate drives.

[0041] As depicted in FIG. 2, an additional central server 15 may be added to the cluster 13 to operate as a central storage node that maintains a central backup of all the files on the PSN 10. The central server may be, for example, a storage area network that provides a dynamic, real time, backup of the entire system. The central server takes the place of a conventional backup tape system.

[0042]FIG. 3 depicts an operational model of the PSN 10. Each storage node 14 implements standard interfaces, e.g. CIFS, HTTP/WebDav and MAP I, to provide client applications 30 access to the files stored on the PSN, regardless of where the files are physically stored. Client applications are essentially any software that uses the PSN to store and retrieve files.

[0043] Referring now also to FIG. 4, a PSN 10 that encompasses various business sites that are networked over a WAN 20 may include separate storage coordinators 12 and/or clusters 13 for the various sites, to promote efficient management of the storage resources at the sites. Similarly, various company departments that operate essentially as separate LANs 22 may include separate storage coordinators 12 or clusters 13. As discussed in more detail below, the system administrator may set different policies for the various sites and departments, with the administrative console 16 providing the appropriate policies to the various storage coordinators, which then manage file storage operations for the departments, sites, and so forth in accordance with the policies. The network is thus readily scalable by adding more storage coordinators 12 and associated nodes 14 and, as applicable, setting appropriate policies.

[0044] A storage coordinator 12 manages file storage by creating storage domains, which are referred to herein as “storage lockers.” There are two types of storage lockers, namely, private storage lockers and public storage lockers. A private storage locker contains information that is to be accessed by a single user, such as an e-mail account or a backup of the user's non-PSN storage area 142. A public storage locker contains information that is to be shared among all or portions of the users of the network. Different public storage lockers may be used, for example, for files that are associated with different qualities of service, and/or files that have different access criteria, and so forth.

[0045] While the files contained in a storage locker may be organized in folders and directories, the storage lockers are not file organizational tools. Rather, as discussed in more detail below, the storage lockers are mechanisms for allocating storage resources to the files and also for controlling access to the files.

[0046] Referring now to FIG. 5, the storage coordinator 12 manages the storage lockers by creating replication groups 300 to store the files that are part of the storage locker. A replication group is essentially an allocation of network storage resources 142, both in terms of the amount of storage that is associated with the group and the set of storage nodes that allocate their resources to the replication group.

[0047] The storage coordinator creates a replication group in response to a request from a user for allocation of additional storage locker resources. The storage coordinator thus selects the nodes for the replication group, and contacts the selected nodes to instruct them to reserve an appropriate amount of their PSN storage resources for the replication group files. Thereafter, the selected nodes communicate with one another, peer-to-peer, to dynamically replicate the files that are to be stored in the resources allocated to the group.

[0048] A small storage locker may be associated with a single replication group, while a large storage locker may be associated with a number of replication groups. The storage coordinator 12 assigns additional replication groups to a given storage locker as the storage locker resources are utilized by the nodes. As discussed in more detail below, the files contained in a given storage locker can be compressed, to conserve storage capacity and reduce the amount of data that must be replicated. As appropriate to control access, the files may be encrypted and the storage coordinator may require that a user have a valid encryption key before gaining access to the locker and/or the contents of the files. The creation and use of the lockers and replication groups as discussed in more detail below.

[0049] As depicted in the drawing, each storage node 14 ₁, 14 ₂, . . . is associated with a number of the replication groups 300 ₁, 300 ₂ . . . , and each replication group includes at least a minimum number of storage nodes. The nodes 14 ₁, 14 ₃ and 14 ₄ form a replication group 300 ₁, the nodes 14 ₁, 14 ₂ and 14 ₃ form a replication group 300 ₂, and so forth. Generally, the storage coordinator 12 assigns the respective storage nodes 14 to different sets of replication groups, essentially to distribute the replicas of the files over the system, and thus, provide resiliency to the system.

[0050] The storage coordinator 12 assigns the storage nodes 14 to replication groups in accordance with the various policies administered by the administrative console 16. One such policy is the minimum number of file replicas that must be maintained by the system in all or certain types of storage lockers, and the storage coordinator thus assigns to each group at least the number of nodes required to meet the applicable replication policy. The administrative console may also set policies that dictate the make-up of the replication groups, such as requiring that at least one of the storage nodes in a given group be located remotely relative to the other nodes in the group, and/or that the storage nodes in a group communicate with the other members of the group by high speed connection. Other considerations in assigning the storage nodes 14 to the groups may be related to network configuration. For example, the storage coordinator may take into account network traffic patterns, connection speeds, and so forth, in order to establish groups in which the members can communicate peer-to-peer to perform dynamic replication and synchronization operations, without having an adverse impact on network bandwidth.

[0051] The storage coordinator 12 may also take into consideration the types and/or uses of the nodes when it organizes the replication groups. For example, the storage coordinator may assign more than the minimum number of storage nodes to a replication group that includes a device which is repeatedly attached to and removed from the PSN 10. The storage coordinator may also assign the device to a relatively small number of groups and/or to groups in which the volume of activity is relatively light, to minimize the extent of the synchronization operations and active replication operations that must be performed to bring the device up-to-date each time the device is re-connected to the network.

[0052] The storage coordinator 12 manages distributed searches of the network files through the groups. In response to a user query, the storage coordinator selects one storage node 14 per group to perform a search of the content of the files associated with the respective replication groups. After conducting their searches, the selected storage nodes send the results of the search back to the storage coordinator. The storage coordinator then organizes the results and presents them to the user. In response to requests for one or more of the files from the user, the storage coordinator instructs appropriate storage nodes from each of the various groups to send copies of the requested files to the user.

[0053] To minimize the network bandwidth consumed by the search, the storage coordinator selects as the searcher in a given replication group a node that is a relatively near neighbor of the storage coordinator. Also, the storage coordinator selects near neighbors of the user to provide the requested files to the user. The storage coordinator may further balance network bandwidth and speed considerations by making the node selections for the search operation based in part on workloads at the various nodes in a group and/or the congestion of connections between the various nodes and the storage coordinator or the user.

[0054] The storage coordinator 12 further manages the distributed storage resources 142 by determining when a given file and/or storage node should be migrated to a different replication group, in order to maintain files essentially local to a user. Also, in accordance with administrative policy, the files that are used relatively frequently by a given storage node may be automatically cached at the storage node. As discussed below, a master replication group is maintained for every locker in a master replication group that includes the storage coordinator. The file allocation table for a given locker may be cached at one or more of the storage nodes.

[0055] Referring now to FIG. 6, the storage coordinators 12 do not provide resources for network file storage and are thus do not participate in storage groups. A given storage coordinator is, however, a node in a master replication group 500 of every storage locker created by the storage coordinator. The replication groups maintain file allocation tables 502 for the respective lockers. The master replication group includes all of the storage coordinators in a cluster and, as necessary to meet minimum replication policies, one or more storage nodes. The master replication group for a private storage locker also includes the “home” node. The storage coordinators are also nodes in communication groups 400, which are established to allow the storage coordinator to communicate with the respective individual storage nodes 14 for purposes of registering the nodes, requesting storage resource allocations, and so forth. Thus, the storage coordinator and the respective nodes must allocate storage resources to the communication groups. The communications among nodes in a given communication group are made using the same message-based protocol discussed above with reference to replication groups. The storage coordinators are also members of a global subscription group 402 that also uses the same message-based protocol to provide system policies globally to the storage nodes 14. As appropriate, the storage coordinators may be members of regional subscription groups through which the storage coordinators provide regional policies to the storage nodes in the respective regions. The various subscription groups provide the policies to the nodes as read-only messages.

[0056] As discussed in more detail below, the storage coordinators 12 are responsible for cataloguing the storage nodes 14 that are available within the PSN 10 and the resources available on each of the respective nodes. The storage coordinators are also responsible for enforcing network policies, and for notifying the system administrator of critical network conditions and/or problems with the respective storage nodes.

[0057] Before discussing in more detail the operations of the storage coordinators and the nodes with respect to adding nodes to the network, creating the lockers, and establishing the replication groups and the associated storage groups, we discuss the administrative policies that are put in place by the system administrator, using the administrative console 16 (FIG. 1).

II. System Administration Policies

[0058] Node Allocation and Availability

[0059] The system administrator sets a disk allocation policy that specifies the maximum and minimum thresholds for the amount of storage capacity at a given node 14 that can be dedicated to the PSN 10. The system administrator also sets a node availability policy that determines when a node is unacceptable as a storage node because of its pattern of usage. The node availability policies are manifest in parameters for network connections, including type, speed, and percentage of time used. Further, a threshold is set for maximum time a node may regularly go off-line. If a given node cannot meet the minimum space allocation and availability thresholds, the node is not included in the PSN as a storage node, and is instead allowed to connect to the network to gain access to the files stored therein.

[0060] Node Addition, Removal and Recovery

[0061] The system administrator sets policies for adding a storage node to the PSN by specifying the following:

[0062] Verify New Node Yes/No

[0063] Catalog Node Contents Yes/No

[0064] Create Private Lockers For All Users Yes/No

[0065] The system administrator may also set node removal and recovery policies that dictate when storage groups must be reorganized. The removal policy parameters include whether or not verification of the removal is required before the groups are reorganized. The recovery policies typically include thresholds for the timing of various stages of alerts to the administrator. In addition, the recovery policies may dictate when or whether a node is allowed to participate in recovery operations, which include re-synchronization of the node with the nodes in the various storage groups of which the node is a member.

[0066] Storage Locker Allocation and Storage

[0067] The system administrator specifies the percentage of the PSN storage resources that can be allocated to the public versus private storage lockers by setting the following parameters separately for private lockers and for public lockers:

[0068] Replication Group Allocation Size

[0069] Maximum size of Private/Public Locker

[0070] Minimum size of Private/Public Locker

[0071] Allow users disable File Version History Yes/No

[0072] Store File Version History—Yes/No

[0073] Default number of file versions stored

[0074] Minimum number of file versions stored

[0075] Maximum number of file versions stored

[0076] The storing of file versions in the various storage lockers is discussed in more detail below.

[0077] The system administrator further sets policies that determine how much of the space allocated to the private lockers and to the public lockers can be allocated to individual private or public lockers. The system administrator thus sets the following parameters separately for individual private and public lockers:

[0078] No. of Replicas

[0079] Location of all Replicas

[0080] Type of Communication Link,

[0081] Remote node yes/no

[0082] Location in WAN

[0083] The system administrator further sets data security policies for the private lockers and, as appropriate, the public lockers. The policies assume various levels of protection are available in the system, and include the following parameters:

[0084] Encrypt Data Yes/No

[0085] Encryption Cipher to Use

[0086] Encryption Strength

[0087] Compress Yes/No

[0088] The data security policies may further include policies relating to secured access to the lockers. File encryption and secured locker access are discussed in more detail below in terms of PSN security.

[0089] File Replication Policies

[0090] The system administrator sets policies that govern the replication of files between the nodes in a storage group. The administrator sets global replication parameters, such as the level of file compression, that are used across the PSN. In addition, the administrator may establish parameters for particular replication operations such as those performed among nodes on the same LAN, or nodes on a WAN. The system administrator may thus establish the timing and rate of the operations by, for example, restricting the operations to off-peak hours, setting the length of intervals between operations, and so forth. As appropriate, different parameter values may be set for various network segments, i.e., sites, departments, and so forth.

III. Installing The PSN

[0091] When the PSN is being installed, the storage coordinators are set up and they then attempt to define the characteristics of the underlying corporate network. The storage coordinators thus set out in a conventional manner to ascertain the characteristics of the various network connections, or links, and the location of the network nodes.

[0092] The storage coordinators may use conventional software resources, such as SNMP, to discover network resources such as routers that can be used to define the structure of the underlying corporate network and for each connection, the speed, i.e., total bandwidth, the latency of the connection, the availability of the connection, i.e., is the connection permanent or dial-up, and whether or not burst data can be sent over the connection. Alternatively, the storage coordinators may acquire the information from a Windows Active Directory, if available. If no automated resources are available, the system administrator identifies and characterizes the network connections for the storage coordinators.

[0093] The system administrator may also establish parameters for use of the connections for PSN operations. For a given connection or type of connection, the system administrator may set hours during which a connection may be used for file replication. Further, the system administrator may define the use of the connection as a percentage of the total capacity of the link. The system administrator also specifies how IP address ranges are spread over the underlying network, so that the storage coordinator will be able to determine the current locations of the network nodes. Further, the system administrator provides the information necessary for the storage coordinator to authenticate the nodes, that is, to establish trusted communications, as part of a node registration process.

[0094] Using the link and node location information, the storage coordinator can assign nodes to storage groups and can appropriately manage replication operations. By knowing the ranges of IP addresses over the entire corporate network, the storage coordinator can determine when a node has moved to, for example, a new office, and thus determine if different policies apply to the replication operations that include the relocated node. For example, the storage coordinator may be required to manage the replication operations in accordance with the policies that apply to groups that include remotely located nodes.

[0095] Once the underlying corporate network has been characterized, the storage coordinator communicates with the various nodes, to register them as participants in the PSN. As discussed, certain corporate network nodes may not meet storage node allocation and/or storage node availability criteria for the PSN. Thus, not every node on the corporate network may be a storage node on the PSN. Rather, certain nodes such as laptops that travel with a user may only connect to the PSN to access files stored thereon.

[0096] Referring now to FIG. 7, the non-storage nodes 70 communicate with the PSN 10 through a gateway 72, for example, a CIFS gateway, using an appropriate interface, in the example, the CIFS interface. When a non-storage nodes requests a file, the CIFS gateway communicates with the storage coordinator 12 to determine the location of the requested file. The gateway then obtains the file from the appropriate storage node and provides the file to the non-storage node. As necessary, the gateway decrypts the file before providing the file to the non-storage node. Similarly, the gateway communicates with the storage coordinator to determine where to send files created or modified by the non-storage node. The gateway then performs any necessary encryption of the file and provides the file the appropriate storage node. When a connection to the PSN over a gateway is in place, the storage coordinators must take the bandwidth requirements of the connection into account when managing replication operations and/or search operations, to avoid network congestion.

IV. Registration A Node

[0097] Referring now to FIG. 8, when a node is to be added to the PSN, the node searches for a storage coordinator (step 800). The node thus broadcasts a message on the network using, for example, the UDP protocol, to elicit function and/or location information about the storage coordinators. Alternatively, the node performs a DNS lookup for a standard storage coordinator name, i.e., sc.<DomainName>.<DomainType>, or the node may perform a search using a host name or an IP address provided by the system administrator. In a Windows® domain, the node may instead search the Active Directory for storage coordinator resources. The storage node then selects an appropriate storage coordinator based on the function and/or location information provided (step 802).

[0098] The node next exchanges information with the storage coordinator as part of an authentication protocol that establishes trusted communications (step 804). The protocol is similar to the protocol used to establish an SSL session.

[0099] Once trusted communications are established, the node receives from the selected storage coordinator 12 a download of the system-wide and, as appropriate, regional, policies established by the system administrator through the administrative console 16 (step 806). The node is also included in a communication group created by the storage coordinator for communications between the node and the storage coordinator (step 808) . Through the communication group, the node sends to the storage coordinators information that identifies the user of the node and also specifies the type of storage node, e.g., personal computer, workstation. Further, the node sends through the communication group node configuration information relating to hardware specifications, installed software and network connections available to the node (Step 810). The communications through the communication group are performed using the same XML message-based protocol that is used for all replication operations, to ensure that the storage node and the selected storage coordinator receive every message, even if the node or the coordinator should go briefly offline and/or the registration process is interrupted.

[0100] As part of the registration process, the user specifies what percentage of the node's storage resources can be allocated to the PSN 10. The user further specifies the expected patterns of usage for the node, i.e., how often the node is expected to be available over the network, and so forth. The system may provide the user with a number of usage profiles, and the user then selects one that best represents the node. Alternatively, the system may present the user with a number of questions designed to elicit the desired information.

[0101] If the storage coordinator 12 determines, based on the system policies, that the node should be added to the PSN as a storage node, the node is included in a master replication group for the user's private storage locker. The node then allocates storage resources for the group and sets up a file allocation table that is maintained by the master group (steps 814, 816). As appropriate, the node is also included in a new replication group and/or in an established replication group, and the node allocates the resources to the groups (step 818, 820).

[0102]FIG. 9 describes the operations of the storage coordinator during a node registration process. Specifically, the storage coordinator authenticates the node, downloads policies, sets up various communication groups and communicates with the node to establish node configuration and allocation parameters (steps 900-908). The storage coordinator then determines if the node meets the minimum requirements for a storage node (step 910). If not, the node is registered as a non-storage node (step 911). If so, the new node is registered as a storage node and a private locker is created (steps 912-914). The storage coordinator then updates the various locker management tables, establishes a file allocation table for the new locker with the node as the home node and includes the node in the master replication group for the locker (step 916). The storage coordinator thus enters the private locker and replication group assignments in a locker management table. The table contains a list of the replication groups and associated storage groups that make up each of the lockers, and the space available in each locker for new replication groups. The table may also include the file allocation table for the locker. Alternatively, the file allocation table may be included as a separate table. The locker management table and, as appropriate, related file allocation tables are replicated in each of the storage coordinators in a cluster 13, to protect the information and allow the storage coordinators to balance the management load. As appropriate, the storage coordinator assigns the node to various replication groups and updates the associated tables accordingly (steps 918)

V. Creating Lockers and Replication Groups

[0103] Based on the system policies, the storage coordinators create private storage lockers and associated replication groups when a new storage node is added to the PSN. Thereafter, the storage coordinator creates lockers and replication groups in response to requests from the storage nodes. Specifically, the storage coordinator creates a private storage locker in response to a message that a new user has access to the network over a given node, assuming that the creation of an additional private locker at the node does not violate an administrative policy. The storage coordinator creates a new public locker in response to a request for one from a user who is authorized and/or allowed under the applicable administrative policies to make such a request.

[0104] To create a new locker the storage coordinator establishes a master replication group that contains a directory or file allocation table for the locker. When a user thereafter requests storage space from the locker, the storage coordinator creates additional replication groups, as discussed below, and provides updated information to the master replication group. As discussed, the locker and replication group information is also added to the locker management table.

[0105] The users specifies in a request for a new locker both the type of locker requested and the attributes for the new locker. The user thus specifies:

[0106] Name of Locker

[0107] Initial size of Locker

[0108] Version history (Yes/No)

[0109] Number of versions to maintain

[0110] Index Locker (Yes/No)

[0111] Level of recoverability (number of replicas to maintain)

[0112] The storage coordinator compares parameters included in the request and, in particular, the requested size of the locker, against the system policies. As appropriate, the storage coordinator establishes the requested storage locker, assigns the requesting node to the master replication group, lists the requesting node as the home node for the locker in a file allocation table, and updates the locker management table.

[0113] The storage node maps the new locker to the CIFS server component of the storage node's software. This ensures that the user can copy or save files into a drive associated with the new storage locker as if the entire locker were on the user's local hard drive. The actual location or locations of the files contained in a storage locker is thus transparent to the user.

[0114] The nodes in a storage group keep track of the use of the resources allocated to the associated replication group. When a predetermined threshold is exceed, one or more of the nodes in the group request additional storage space from the storage coordinator. The storage coordinator then allocates additional storage space in the storage locker by creating a new replication group and associated storage group. The storage coordinator notifies the master replication group about the new group, and the master group updates the file allocation table. Further, the storage coordinator updates its locker management information to include the new group.

[0115] As discussed above, the storage coordinator selects the nodes for a storage group based in part on the system policies that dictate the number of replicas and whether a remote node must be included in the group. Further, the storage coordinator attempts to balance work load among the storage nodes and/or among the connections between the nodes, such that replication operations will have a minimum adverse effect on network bandwidth.

VI. File Storage

[0116] A user saves a file to a locker, or more particularly, in a replication group contained in the locker, by designating that the file be saved on the drive assigned to the locker. The CIFS interface at the user's node handles the storing of the file on the PSN resources 142 allocated to the replication group. If the user's node is not a member of the replication group, the CIFS software provides the file to a storage node in the appropriate storage group. As discussed below, the node contacts the storage coordinator to determine where to send the files for storage.

[0117] Before a file is stored on a storage node 14 in the designated storage group, the node follows the applicable storage locker policy that is set by the administrator and administered through the administrative console 16. Typically, the file is first indexed, so that the index can be used for content-based searching. Next, the file is compressed, to save disk space and also to reduce the amount of data that must be replicated. The compressed file is then encrypted, using the cipher and key size defined in the applicable locker security policy. The file is then ready for replication to the other nodes in the storage group, as discussed in more detail below.

[0118] When a file is saved a second time, a new version of the file is stored in the file folder. The older version of the file remains available in accordance with the storage locker versioning and file history policies. The policies may, for example, allow a particular number of versions to be maintained for some defined period of time. As needed, a user may access the prior versions of the file to, for example, recover lost data.

[0119] All files are listed in the appropriate storage locker file allocation tables maintained in the respective master replication groups. The table entry for a given file contains links to the actual file stored in the PSN. The links are based on universal resource identifiers (URIs) as defined by the W3C.org. A major difference between conventional URIs and the table entries is how the file system hierarchy is represented. The table entry includes a file Id that specifies a replication group, a node and a message number that indicates where the file was inserted into the PSN. The URI for the PSN file is thus:

[0120] File://<Locker Name>/<Replication Group Id>/<File Id>,

[0121] where File Id is made up of a Replication Group Id, a Node Id and a Unique Message Number.

VII. Replication Operations

[0122] As discussed, the replication operations are performed as background tasks that are transparent to a user. The operations are relegated to times, rates and connection bandwidths that are dictated by the system administrator.

[0123] Replication is performed using a connectionless message-based protocol that is based on a Web Riposte™ protocol developed by The Escher Group. The protocol uses the User Datagram Protocol/Internet Protocol (UDP/IP) and thus makes efficient use of available network bandwidth.

[0124] When a file is saved, the file is stored as a series of numbered messages, that each contain a unique message identifier. During the replication operation a file to be replicated is provided to a receiving node as a series of the numbered messages. The node receiving the messages stores the messages in the allocated storage resources. The storage nodes in a storage group later exchange information relating to the group-related messages they have stored. If a given storage node determines that it is missing a particular message, the storage node requests the missing message from one of the other nodes in the storage group. This process continues until the group files are synchronized at every storage node in the storage group.

VIII. Security

[0125] The files stored in the private storage lockers and/or in the public storage lockers may be encrypted in accordance with the policies administered through the administrative console. The system may also require authentication of a storage node before the node is granted access to the files contain in the storage lockers. We discuss below the various security mechanisms that may be employed for a storage locker.

[0126] Node Authentication

[0127] As part of the storage node registration process, a storage node 14 receives a private identifier, which is used to authenticate the node with the storage coordinator. The private identifier is a private key from a public key cryptosystem and the associated public key is installed on the storage coordinator. The storage coordinator uses conventional cryptographic authentication techniques to authenticate the storage node.

[0128] Private Lockers With Encryption

[0129] When the storage coordinator creates a private locker that utilizes encryption, the storage coordinator generates a pair of public and private keys K_(PUB) and K_(PRIV). The storage coordinator then encrypts K_(PRV) using the associated user's password and provides the encrypted K_(PRV) and K_(PUB) to the storage node that is managing the private locker.

[0130] When a file is to be stored in the private locker, the storage node that manages the locker generates a private key K_(DES) which is based on a private key algorithm and encrypts the file using K_(DES). The storage node also encrypts K_(DES) using K_(PUB) and concatenates the encrypted key and the result of encrypting the file, to produce an encrypted file that is then stored on the managing node and replicated to the other nodes in the associated storage group.

[0131] The encrypted file can be decrypted only by those users who are in possession of K_(PRV). Thus the user who has control of the private storage locker can determine who has access to the files stored in the private locker, regardless of where the files are stored.

[0132] For added security the encrypted file can be encoded using Reed Solomon encoding. The encrypted file is thus encoded in accordance with a selected Reed Solomon code, to produce a Reed Solomon code word. The code word is then broken up into n sections, such that the code word can be reconstructed from any subset of m of the sections, where n and m are preselected values. The managing node supplies the sections to the various replication groups associated with the private locker, such that the sections will be stored on the associated group nodes. No one node will then contain the entire code word, and the file can not be reconstructed without data from other nodes that contain sections of the codeword.

[0133] Public Lockers With Encryption

[0134] A similar encryption method is used for the public lockers. However, since multiple users must have access to the files contained in the public locker, the private/public key pair associated with the locker must be accessible to all users who have write permission to access the locker. Those with read permission will need to be in possession of only the private key. Also, as the list of those permitted to access the locker changes, new keys are issued to allow new users access to the locker and to prevent non-permitted users from gaining access to the locker. The storage coordinator maintains information that associates each file in a locker with an appropriate public/private key pair.

[0135] When the storage coordinator creates the public locker the storage coordinator associates a first public/private key pair K_(PUB1) and K_(PRIV1) with the locker. The storage coordinator maintains a directory that associates K_(PRIV1) with the files that are encoded using K_(PUB1). On request the storage coordinator provides K_(PRIV1) to permitted users who require access to the files in the directory.

[0136] When there is a change to the permitted users, the storage coordinator generates a new key pair, namely, K_(PUB2) and K_(PIV2). The storage coordinator similarly maintain a directory that associates the new private key with the files that are encrypted using the new public key, and on request provides both the new and the old private keys to permitted users who require access to the files. The next time there is a change in the permitted users, the storage coordinator generates a new key pair, and so forth.

[0137] The storage coordinator maintains the directory structure information for each locker in the locker management tables. The information in the tables further includes the respective storage nodes and groups in which the files, or as applicable sections of the files, are stored. Any authorized node can obtain this information in order to gain access to files stored in the locker.

[0138] When a storage node requires a file that is stored in the locker, the storage node first authenticates itself with the storage coordinator using the private identifier that is stored in encrypted form in the node. The storage coordinator thereafter determines if the node is authorized to have access to the requested file. If so, the storage coordinator provides the node with the applicable K_(PRIVi), and a list of the storage nodes that have a copy of the file. The storage coordinator also acts as a third-party trusted server for authentication of the requesting node to the storage node that holds the file. The requesting node and the node that holds the file use a Needham-Schroeder type authentication protocol, such as Kerberos, to establish trusted communications. After authentication, the node that has the file sends the file to the requesting node. The requesting node then decrypts the file using K_(PRIVi), and provides the decrypted file to the user.

[0139] If the user modifies the retrieved file, the storage node uses the latest K_(PUBi) provided by the storage coordinator to encrypt the file. The storage node then sends the encrypted file to the appropriate node after authentication has taken place. If the storage node's authentication has expired, the storage node requests that the storage coordinator again acts as a third-party trusted server for authentication of the node with the node to which the file must be sent. After authentication, the node then sends the encrypted file.

[0140] Replication Groups With Authentication

[0141] The nodes participating in a replication group may also be required to establish trusted communication with each other before replicating. Thus, the respective nodes in the group contact the storage coordinator to act as the third-party trusted server.

IX. File Locking

[0142] The PSN employs file locking in public lockers to control concurrent access to files stored in the PSN. In private lockers file locking is not required because, based on system policy, only one user can access files in a given private locker at any one time.

[0143] For the public lockers, the storage coordinators maintain locks on files based on requests made by users for either read or write access to the files. When a user attempts to open a file in the public locker, storage node requests access to the file by contacting the storage coordinator and requesting access. The level of access requested is based on how the client accesses the file. Typically, two parameters are used, one specifying the file access method and the other specifying if the file can be shared or not. If the file is not available for the requested level of access, the storage coordinator rejects the request. The storage node then returns an appropriate error message to the user.

[0144] If the file is available, the storage coordinator tracks the status of the file so that the storage coordinator can handle other concurrent requests from users of the public locker. The storage coordinator thus places a lock on the file by notation in the appropriate locker management table. The storage coordinator also returns a success message to the storage node and includes in the message a token that is unique to the transaction and/or to the user. The token identifies the file lock in all subsequent calls from the user to the storage coordinator in relation to the locked file.

[0145] When the storage coordinator is a member of a cluster of storage coordinators, the storage coordinator must coordinate with the other member of the cluster, to ensure that a requested file is not then in use by a user who is communicating with another of the storage coordinators.

[0146] The file access control used by the PSN is similar to the access control used in windows NT to ensure compatibility with all client applications.

X. Lexical Recovery

[0147] As discussed above, the PSN selectively maintains replicated versions of files in accordance with administrative and local policies. The applicable policies may differ between storage lockers based on the user-specified attributes for the respective lockers, as discussed above. For each storage locker the user selects whether or not a version history is to be maintained and, as appropriate, the number of versions to be included in the history. In addition, system-wide versioning policies, such as the number of versions to be maintained, may be set by the system administrator based on file type, file size and/or the amount of storage space available.

[0148] Referring now to FIG. 10, at a given storage node, a lexical recovery sub-system 80 monitors changes that occur in the various directories that are included in the storage lockers for which versions.are to be maintained. The sub-system monitors write, create and delete functions and produces for each directory a list of the files that have been the subjects of the monitored functions. The lexical recovery sub-system then determines whether or not the contents of the respective files have been modified. If the content of a given file has been modified, the lexical recovery sub-system inserts a new file version into the file folder that is maintained in the storage locker at the storage node. The file name assigned to the new version includes a version number or other indication that distinguishes the stored version from the current or previous versions of the file. The storage node then indexes the new file version and the storage node replicates the file version and the associated index among the nodes in the replication group, in the manner discussed above. The new file version may be stored and replicated in its entirety or the file version may be stored and replicated as a list of changes, or deltas, to the earliest version of the file. However, regardless of how the version is stored and replicated, the entire file version is indexed.

[0149] In a PSN that operates in a Windows® domain, the lexical recovery sub-system 80 monitors the directories using an API function which is provided by the operating system to return the changes that have occurred in the respective directories. The API function monitors read, write, access, create, and delete file activities and at appropriate times using, for example, asynchronous program calls, provides a list of the files and the associated activities. The sub-system then determines which activities warrant the creation of file versions.

[0150] A user may search the PSN for a file or for particular data using a content-based search engine that operates in essentially the same manner as an internet search engine, and thus, searches all file types. The search of the PSN is conducted as a distributed search, in the manner discussed above, with the search engine searching through the indexes at the storage nodes that have been selected by the storage coordinator to participate in the search. The storage coordinator receives search results from the participating storage nodes, and the storage coordinator prepares a list of the results for the user. The list contains entries for at least the current versions of the files that include the desired content and, as appropriate, entries for all of the retained file versions that include the desired content.

[0151] From the search results, a user can readily preview the contents of the various files and/or restore a previous version in place of the current version of a given file, without the intervention of IT personnel. The restored version, that is, the version of a file with which the user is working, is then considered the current version of the file if the restored version is saved. In addition, the user can selectively locate and restore files and/or data that have been intentionally or unintentionally altered or deleted, without the intervention of IT personnel. Further, the user can recover uncorrupted versions of corrupted files and/or data, again without the intervention of IT personnel.

[0152] In summary, the peer storage network provides a centrally managed and administered system that uses storage resources that are distributed over an underlying corporate network. The storage resources are under-utilized storage capacity on, for example, hard disks of the personal computers that are connected to the network. The system is set up as replication groups, which perform file replication operations that eliminate the need for daily back-up operations of the system. Further, the system maintains versions of files such that a user, without the intervention of IT personnel, can readily recover a lost, corrupted or deleted file.

[0153] With centralized administration of the system, the system administrator can readily oversee the operations of the entire system. Further, the system administrator can set policies that effect all or portions of the system through an administrative console that communicates with the storage coordinator, which enforces the policies.

[0154] The system is readily scalable by the addition of storage nodes and/or storage coordinators. As appropriate, the system administrator can readily set new policies for the additions to the network.

[0155] Various authentication protocols incorporated into the system, as well as access policies and file encryption policies applicable to various types of files, ensure that the network is secure and that storage lockers and individual files are protected from unauthorized users. The system administrator may, at any time, change access privileges through the administrative console. The changes to the access privileges are then enforced by the storage coordinator by, for example, changing the encryption keys associated with a locker or files contained in the locker.

[0156] The system performs its replication operations using an XML message based protocol that efficiently utilizes available network bandwidth by communicating using the UDP/IP protocol. The replication operations run as background transactions, which are transparent to the user. The system further utilizes a synchronization process that ensures that the nodes in the storage group each have synchronized copies of the group files.

[0157] The system thus operates efficiently in a business environment, and has relatively low overhead when compared to other file storage systems for business environments. 

What is claimed is:
 1. A distributed network storage system including a plurality of file storage nodes that are distributed on and communicate peer-to-peer over the network; a storage coordinator that manages file storage on the plurality of file storage nodes, the storage coordinator designating selected groups of nodes within the plurality of file storage nodes and directing the nodes in a given group to communicate peer-to-peer to replicate associated group files; and a lexical recovery sub-system for directing the file storage nodes to maintain versions of selected files as part of the group files.
 2. The distributed network storage system of claim 1 wherein the file storage nodes index the versions of the files and replicate the index as part of the group files; and the storage coordinator directs searches across the group files using the indexes.
 3. The distributed network storage system of claim 2 further including an administrative console that administers policies set by a system administrator, the administrative console providing to the storage coordinator policies relating to access to various types of files; the storage coordinator creates different types of storage lockers for files associated with different access policies and provides to the lexical recovery sub-system policies relating to the maintaining of versions of files in the different types of storage lockers; and the lexical recovery sub-system directs the file storage nodes to maintain versions of the files in accordance with the policies provided through the storage coordinator.
 4. The distributed network storage system of claim 3 wherein the lexical recovery sub-system further directs the file storage nodes to maintain versions of the files in the storage lockers in accordance with user-specified policy attributes associated with the respective storage lockers.
 5. The distributed network storage system of claim 3 wherein the storage coordinator manages distributed searches of the files stored in the system by designating a selected node from each group to search through the indexes associated with the respective group files, the storage coordinator accumulating the search results from the selected nodes and providing the results to a requesting node.
 6. The distributed network storage system of claim 5 wherein the selected storage nodes search according to a file name or file content and provide listings of current and previous versions of files that meet the search criteria.
 7. The distributed network storage system of claim 6 wherein a user at the requesting node selectively restores a previous version of a file in place of a current version of the file by selecting the previous version from the search results.
 8. The distributed network storage system of claim 6 wherein a user at the requesting node recovers a file from the replicated group files by selecting the file from the search results.
 9. The distributed network storage system of claim 1 wherein the lexical recovery sub-system monitors modifications to the selected files and for the respective files that have been modified creates versions of the files.
 10. The distributed network storage system of claim 3 wherein the lexical recovery sub-system monitors modifications to files in selected storage lockers and for the respective files that have been modified creates versions of the files for the storage nodes to maintain in the associated storage lockers.
 11. The distributed network storage system of claim 10 wherein the lexical recovery sub-system monitors changes to directories of the selected storage lockers and determines which files have been modified, the sub-system creating in the respective directories versions of the files that have been modified. 